<template>
  <div>
    <ul class="mui-table-view">
      <li class="mui-table-view-cell mui-media" v-for="item in arr" :key="item.id">
        <router-link :to="'/home/newList/' + item.id">
          <img class="mui-media-object mui-pull-left" :src="item.images">
          <div class="mui-media-body">
            <h3>{{item.title}}</h3>
            <p class="mui-ellipsis">
              <span>发表时间:{{item.data}}</span>
              <span>点赞{{item.number}}次</span>
            </p>
          </div>
        </router-link>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr: [
        {
          id: 1,
          title: "的骄傲煞风景啊回复",
          data: "2016-12-5 15:16:03",
          number: 5,
          images: "/src/images/1.jpg"
        },
        {
          id: 2,
          title: "JFK拉萨解放",
          data: "2016-2-15 15:16:03",
          number: 3,
          images: "/src/images/menu1.png"
        },
        {
          id: 3,
          title: "分级管理打发十分",
          data: "2016-8-9 15:16:03",
          number: 8,
          images: "/src/images/menu2.png"
        },
        {
          id: 4,
          title: "大师可能考虑发你快点说啦很疯狂",
          data: "2017-3-26 15:16:03",
          number: 3,
          images: "/src/images/menu3.png"
        },
        {
          id: 5,
          title: "i哈覅就立刻",
          data: "2018-2-5 15:16:03",
          number: 4,
          images: "/src/images/menu4.png"
        },
        {
          id: 6,
          title: "覅偶的撒谎覅oh",
          data: "2016-2-30 15:16:03",
          number: 1,
          images: "/src/images/menu5.png"
        }
      ]
    };
  }
};
</script>
<style lang="scss" scoped>
.mui-table-view {
  li {
    h3 {
      font-size: 14px;
    }
    .mui-ellipsis {
      font-size: 12px;
      color: #226aff;
      display: flex;
      justify-content: space-between;
    }
  }
}
</style>
